class Creation {
  int? userId;
  String? title;
  String? tag;
  String? cover;
  List<String>? content;
  String? describe;
  int? like;
  int? postId;
  String? common;

  Creation(
      {this.userId,
      this.title,
      this.tag,
      this.cover,
      this.content,
      this.describe,
      this.like,
      this.postId,
      this.common});

  Creation.fromJson(Map<String, dynamic> json) {
    userId = json['userId'];
    title = json['title'];
    tag = json['tag'];
    cover = json['cover'];
    content = json['content'].cast<String>();
    describe = json['describe'];
    like = json['like'];
    postId = json['postId'];
    common = json['common'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['userId'] = userId;
    data['title'] = title;
    data['tag'] = tag;
    data['cover'] = cover;
    data['content'] = content;
    data['describe'] = describe;
    data['like'] = like;
    data['postId'] = postId;
    data['common'] = common;
    return data;
  }
}
